package com.baizhiedu.rsm.dao;

import com.baizhiedu.rsm.entity.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lby
 */
public interface SubjectDao {
    /**
     * 选择区间查询
     * @param frontId
     * @param lastId
     * @return
     */
    List<Subject> selectAllBySid(@Param("frontId") Integer frontId, @Param("lastId")  Integer lastId);

    int deleteByPrimaryKey(Integer sbid);

    int insert(Subject record);

    Subject selectByPrimaryKey(Integer sbid);

    List<Subject> selectAll();

    int updateByPrimaryKey(Subject record);
}